package Vue;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class Recherche extends JPanel{

	public JTextField jtf = new JTextField("");
	private Fenetre fen;
	private Boutongo bouton;
	private BoutonGoAll boutonGoAll;
	
	public Recherche(Fenetre f) {
		fen=f;
		bouton = new Boutongo(fen);
		boutonGoAll = new BoutonGoAll(fen);
		this.setBackground(Color.WHITE); 
		ImageIcon ii = new ImageIcon(System.getProperty("user.dir")+"\\src\\Vue\\catcatgo.jpg");
		Image ima;
		ima = ii.getImage().getScaledInstance(200,200,Image.SCALE_DEFAULT);
		JLabel labelImage = new JLabel(new ImageIcon(ima), SwingConstants.CENTER);
		this.add(labelImage);
		jtf.setColumns(30);
		this.add(jtf);
		this.add(bouton);
		this.add(boutonGoAll);
	}
}
